package com.ruoyi.app.zzq.controller;

import com.ruoyi.app.zzq.service.OrgService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/org")
public class OrgController  extends BaseController {
    @Autowired
    private OrgService orgService;

    @ApiOperation("提交组织转移申请 ")
    @GetMapping(value = "/submittransferbranch")
    public AjaxResult SubmitTransferBranch(String id,String outpId,String inpId,String filePath,String reason)
    {
        return AjaxResult.success(orgService.SubmitTransferBranch(id,outpId,inpId,filePath,reason));
    }

    @ApiOperation("查询组织转移申请 ")
    @GetMapping(value = "/servertransferbranch")
    public AjaxResult ServerTransferBranch(String id)
    {
        return AjaxResult.success(orgService.ServerTransferBranch(id));
    }

    @ApiOperation("审批组织转移申请  ")
    @GetMapping(value = "/istransferbranch")
    public AjaxResult IsTransferBranch(String flag,String userid)
    {
        return AjaxResult.success(orgService.IsTransferBranch(flag,userid));
    }


}
